<?php
/**
 * Created by PhpStorm.
 * User: 共赢岛
 * Date: 2025/7/6
 * Time: 15:02
 */

namespace App\Admin\Services;


class WorkOrderOperationLog
{
    public static function save($param = [])
    {
        if ($param['type'] == 1) {
            $type = '电脑端';
        } else {
            $type = '移动端';
        }

        \App\Models\WorkOrderOperationLog::create([
            'user_id' => $param['user_id'] ?? 0,
            'work_order_id' => $param['work_order_id'],
            'processes_archives_id' => $param['processes_archives_id'] ?? 0,
            'content' => $type.'-'.$param['content'],
            'operation_id' => $param['operation_id']
        ]);

        return true;
    }
}